Mobile Test Actions
Mobile Test Actions in DevAssure provide a comprehensive set of touch and gesture interactions to simulate real user behaviors on mobile devices. These actions are configurable, and with the flexibility of choosing elements, durations, and distances, they enable precise and controlled testing across applications.
Touch Actions:
Action | Description |
---|---|
Tap on (Element)) | Simulates a single tap on the specified element. |
Tap on (Element) and hold for (duration) milliseconds) | simulates a long press on the specified element for the given duration. |
Pinch IN on (Element)) | Simulates a pinch-in gesture on the specified element. |
Pinch OUT on (Element) | Simulates a pinch-out gesture on the specified element. |
Double tap on (Element)) | Simulates a double-tap on the specified element. |
Click on (Element)) | Simulates a click on the specified element. |
Scroll vertically on (Element)) | simulates a vertical scroll on the specified element. |
Scroll horizontally on (Element)) | simulates a horizontal scroll on the specified element. |
Scroll (parentElement) until (element) is in view | Scrolls within the specified parent element until the target element is visible |
Swipe on (Element) for distance (x), (y) and hold for (duration) millisecond) | Simulates a swipe gesture on the specified element. |
Input
Action | Description |
---|---|
Input value (value) in (Element) | Simulates typing a specified value into the targeted element. |
Send Keys (text, element) | Sends a specified text input to the targeted UI element. |
Clear Text (element) | Clears any existing text from the targeted UI element |
Element
Action | Description |
---|---|
Wait for (Element) to be present | Waits until the specified element is present in the DOM. |
Wait for (Element) to be present within (duration) milliseconds | Waits for the specified element to be present in the DOM within a given time frame. |
Wait for (Element) to be visible | Waits until the specified element becomes visible on the screen. |
Wait for (Element) to be visible within (duration) milliseconds | Waits for the specified element to become visible within a given time frame. |
Wait for (Element) to disappear | Waits until the specified element is no longer visible on the screen. |
Wait for (Element) to disappear within (duration) milliseconds | Waits for the specified element to disappear from the screen within a given time frame. |
Get (n)th instance of Element | Fetches the nth instance of a specified element. |
Is (Element) present within (duration) milliseconds | Checks if the specified element exists on the web page within the given time duration. |
Get text of Element | Retrieves the text content of the specified element. |
Get Count of Element | Counts the occurrences of the specified element on the web page. |
Is (Element) visible within (duration) milliseconds | Checks if the specified element becomes visible within a given time frame. |
Is (Element) checked within (duration) milliseconds | Checks whether the specified UI element is in a checked state. |
Is (Element) enabled within (duration) milliseconds | Checks whether the specified UI element is enabled and interactive. |
Validation
Action | Description |
---|---|
Verify if (Element) is visible | Checks whether the specified element is visible on the web page. |
Verify if count of (Element) is (n) | Verifies if the number of occurrences of the specified element matches the expected count. |
Verify if text of (Element) is equal to (text) | Checks if the text content of the specified element matches the expected text. |
Take Screenshot (label) | Captures a screenshot of the current visual state of the application and saves it with a label. |